package com.gqc.test05;

import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

public class TestPeople {
	@Test
	public void demo04() {
		
		String xmlPath= "test5.xml";
//		BeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource(xmlPath));
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		Person person = applicationContext.getBean("Person",Person.class);
		
		System.out.println(person);
		
				
	}
	
	
}
